-
Notifications
You must be signed in to change notification settings - Fork 439
Remove syntax classification lit
-based tests
#1966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove syntax classification lit
-based tests
#1966
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just looked through the test cases that you didn’t translate to XCTest and I agree that most of them are redundant or pointless with the new SwiftParser implementation. The only exception is that I’d like to have a test case where an escaped keyword is used as an identifier.
|
||
func keywordInCaseAndLocalArgLabel(_ for: Int, for in: Int, class _: Int) { | ||
// CHECK: <kw>func</kw> <id>keywordInCaseAndLocalArgLabel</id>(<kw>_</kw> <id>for</id>: <type>Int</type>, <id>for</id> <id>in</id>: <type>Int</type>, <id>class</id> <kw>_</kw>: <type>Int</type>) { | ||
switch(`for`, `in`) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think some test case with escaped identifiers would be good to keep.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's good👍. I added two in my new commit in #1953.
Otherwise: Thanks a lot for getting rid of |
@StevenWong12 Could you rebase this PR? |
Also remove `lit-test-helper` in the codebase
26e1416
to
da586f2
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
@swift-ci Please test macOS |
The follow-up PR for #1953.
Also remove the
lit-test-helper
in codebase. 🥳